package com.tueye.entity.user;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tueye.entity.BaseEntity;

/**
 * 用户BLog
 * @author yuyue
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tueye_userblog_info")
public class UserBlogInfo extends BaseEntity {
	/*blog最后登录时间*/
	private Date last_login_time;
	/*blog的风格
	 * 1为白色
	 * 2为蓝色
	 * 3为桔色
	 * 4为绿色
	 * 5为紫色
	 * 6为粉红色
	 * */
	private Integer blog_style;
	/*blog表里面用户的id,但是这个用户分两类,一类是记录1blog的拥有者,一类是记录2blog的防问者*/ 
	private Integer user_type;
	private Integer blog_browse_num; //blog浏览次数
	
	private User user;

	public Date getLast_login_time() {
		return last_login_time;
	}

	public void setLast_login_time(Date last_login_time) {
		this.last_login_time = last_login_time;
	}

	public Integer getBlog_style() {
		return blog_style;
	}

	public void setBlog_style(Integer blog_style) {
		this.blog_style = blog_style;
	}
    
	public Integer getUser_type() {
		return user_type;
	}

	public void setUser_type(Integer user_type) {
		this.user_type = user_type;
	}
	@ManyToOne
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getBlog_browse_num() {
		return blog_browse_num;
	}

	public void setBlog_browse_num(Integer blog_browse_num) {
		this.blog_browse_num = blog_browse_num;
	}
	
	
	
}
